package com.sense.kukoo.biz_me.adapter

import com.sense.kukoo.biz_me.adapter.provider.SelectCountryItemProvider
import com.sense.kukoo.common.repo.bean.AreaBean
import com.sense.kukoo.common.repo.bean.HistoryItemBean
import com.sense.kukoo.common.wiget.adapter.MultiItemAdapter

class SelectCountryAdapter(
    data: MutableList<AreaBean>,
    val listener:OnSelectCountryListener,
) :
    MultiItemAdapter<AreaBean>(data) {

    private val TAG: String = javaClass.simpleName

    init {
        addItemProvider(SelectCountryItemProvider(listener))
    }

    override fun getItemType(data: MutableList<AreaBean>?, position: Int): Int {
        return AreaBean.TYPE_DEF
    }

    interface OnSelectCountryListener{
        fun onItemClick(b:AreaBean, position: Int)
    }
}